<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml">

<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript">
    $(function() {
        $.ajax({
            type: "POST",
            url: "api/failList",
            data: {},
            success: function (data) {
                var inf = "<table class='table'>"
                inf = inf + "<tr><th>订单号</th><th>失败原因</th></tr>";
                for (var o in data){
                    var id = data[o];
                    if (id != null){
                        inf = inf + "<tr><th>" + id +"</th><th>订单超时</th></tr>";
                    }
                }
                inf = inf + "</table>";
                $("#showDataId").html(inf);
            }
        });
    });
</script>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>失败订单列表</title>
</head>
<body id="showDataId">

</body>
</html>